<?php
/*
 * Created on Aug 14, 2012
 *
 * To change the template for this generated file go to
 * Window - Preferences - PHPeclipse - PHP - Code Templates
 */
function _frontend_preset_custom_activities_slide($viewName){
	$cityCache = cache_get('current_city_term');
    $cityTerm = $cityCache->data;
    
    $modelActivity = Lib_Glools_Load::load('activity', 'model');
    $activities = $modelActivity->loadPromotedActivitiesInCity(5, $cityTerm);
    
    //path rule:views/[MODULE]/view_name_[private key].view.css
    //drupal_add_css(path_to_theme().'/css/views/cities/advertisement_slide_promotedActivities.view.css');
    //drupal_add_js(path_to_theme().'/js/views/cities/advertisement_slide_promotedActivities.view.js');
    
    return $activities;
}